import request from '@/utils/request'

/**
 * 查询华才汇盐资讯分页列表
 */
export function pageListInformation(query) {
    return request({
        url: '/hchy/information/pageList',
        method: 'get',
        params: query
    })
}

/**
 * 查询华才汇盐资讯所有列表
 */
export function listInformation(query) {
    return request({
        url: '/hchy/information/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询华才汇盐资讯详细
 */
export function getInformation(id) {
    return request({
        url: '/hchy/information/' + id,
        method: 'get'
    })
}

/**
 * 新增华才汇盐资讯
 */
export function addInformation(data) {
    return request({
        url: '/hchy/information',
        method: 'post',
        data: data
    })
}

/**
 * 修改华才汇盐资讯
 */
export function updateInformation(data) {
    return request({
        url: '/hchy/information',
        method: 'put',
        data: data
    })
}

/**
 * 删除华才汇盐资讯
 */
export function delInformation(id) {
    return request({
        url: '/hchy/information/' + id,
        method: 'delete'
    })
}
